import http from '../request'

export default {
  async getSearch(key, pageNo = 1, t) {
    return await http.get(`/search?key=${key}&pageNo=${pageNo}&remoteplace=song&t=${t}`)
  },
  async getRecommendBanner() {
    return await http.get('/recommend/banner')
  },
  async getMvByTag() {
    return await http.get('/mv/list?pageSize=6')
  },
  async getSongListDetail(id) {
    return await http.get(`/songlist?id=${id}`)
  },
  async getPlayList() {
    return await http.get('/recommend/playlist/u')
  },
  async getMvUrl(id) {
    return await http.get(`/mv/url?id=${id}`)
  },
  async getComment(id) {
    return await http.get(`/comment?id=${id}&biztype=5`)
  },
  async getCategory() {
    return await http.get('/mv/category')
  },
  async getMvList(id) {
    return await http.get(`/mv/list?area=${id}`)
  }
}
